package cn.itcast.nems.studentrecord.dao.mapper;

import cn.itcast.nems.studentrecord.dao.dataobject.JournalRenewalDiscountDO;
import cn.itcast.nems.studentrecord.dao.entity.JournalRenewalDiscount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JournalRenewalDiscountMapper extends BaseMapper<JournalRenewalDiscount> {
    /**
     * 根据ID查询指定凭单下的优惠明细
     *
     * @param journalRenewalId 凭单ID
     * @return 优惠明细列表
     */
    List<JournalRenewalDiscountDO> findListByJournalRenewalId(@Param("journalRenewalId") String journalRenewalId);

}
